namespace SubhadraSolutions.Sharp.Logging.Context
{
    public sealed class ContextObject
    {
        #region Constructors

        public ContextObject(string name)
        {
            Name = name;
        }

        #endregion Constructors

        #region Properties

        public string Name
        {
            get;
            private set;
        }

        public object Value
        {
            get { return LoggingContext.Instance[Name]; }
            set { LoggingContext.Instance[Name] = value; }
        }

        #endregion Properties
    }
}